package cn.wizzer.app.sys.modules.models;

import cn.wizzer.framework.base.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * 系统收录银行库
 */
@Data
@Table("sys_bank_lib")
public class SysBankLib extends BaseModel implements Serializable {
    @Column
    @Name
    @Comment("ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(els = {@EL("uuid()")})
    private String id;


    @Column
    @Comment("银行简称")
    @ColDefine(type = ColType.VARCHAR, width = 20)
    private String shortName;


    @Column
    @Comment("币种ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String currencyId;


    @Column
    @Comment("银行全称")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private String name;


    @Column
    @Comment("银行logo")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String logo;


    @Column
    @Comment("是否禁用0否1是")
    @ColDefine(type = ColType.BOOLEAN)
    private boolean disabled;
}
